Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update DND sensor icon based on state #4507

Merged
merged 4 commits into from
Jul 17, 2024
Merged

Update DND sensor icon based on state #4507

merged 4 commits into from
Jul 17, 2024

Conversation

mikosoft83
Copy link
Contributor

Summary

Adding icons based on DND sensor state. Makes for easier visual aid.

Screenshots

Link to pull request in Documentation repository

Documentation: home-assistant/companion.home-assistant#

Any other notes

Add dynamic icons to DND sensor
@jpelgrom
Copy link
Member

jpelgrom commented Jul 12, 2024

Not sure I agree with this change as modern Android versions use DND as on/off (switching between priority_only and off) and doesn't change the icon. The icons you're using sort of resemble ringer mode, which may be different.

@jpelgrom jpelgrom changed the title Update DNDSensorManager.kt Update DND sensor icon based on state Jul 12, 2024
@mikosoft83
Copy link
Contributor Author

Would it make sense then to clump all DND modes together using single icon for "on" and another for "off"?

@jpelgrom
Copy link
Member

If there must be an icon change yes, but as said I don't think the icon should be changed as the system doesn't change icons depending on on/off.

@mikosoft83
Copy link
Contributor Author

At least in my version of android, no, the icon itself doesn't change but the background changes as a visual indication.
And in HA itself the binary sensors often have different icons for on and off state.

@dshokouhi dshokouhi merged commit 5cc5efa into home-assistant:master Jul 17, 2024
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants